package com.qyl.honghengshop.service.impl;

import java.util.List;

import com.qyl.honghengshop.dao.OrderItemDao;
import com.qyl.honghengshop.dao.impl.OrderItemDaoImpl;
import com.qyl.honghengshop.dto.OrderItem;
import com.qyl.honghengshop.dto.User;
import com.qyl.honghengshop.service.OrderItemService;

public class OrderItemServiceImpl implements OrderItemService {

	private OrderItemDao orderItemDao = new OrderItemDaoImpl();
	
	@Override
	public void saveOrderItem(OrderItem orderItem) {

		orderItemDao.saveOrderItem(orderItem);
		
	}

	@Override
	public List<OrderItem> getOrderItemList(User user) {
	
		return orderItemDao.getOrderItemList(user);
	}

	@Override
	public List<OrderItem> showOrderItemByOid(Integer oid) {

		return orderItemDao.showOrderItemByOid(oid);
	}

}
